package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class JuadeAVchatMethods extends BaseMethods {

    private static JuadeAVchatMethods m_ins = null;

    public static JuadeAVchatMethods getInstance() {
        if (m_ins == null) {
            synchronized (JuadeAVchatMethods.class) {
                if (m_ins == null) {
                    m_ins = new JuadeAVchatMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Personal/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void comment_user(Subscriber<Object> subscriber,
                      int uid,
                      String hashid,String fid ,String assess,String reason ) {
        Observable observable = initService().comment_user(System.currentTimeMillis()+"",
                "932197f12bc31c21e9b206dc7d32117a",uid,hashid,fid,assess,reason
        );
        toSubscribe(observable, subscriber);
    }
}
